import axios from 'axios'
import type {} from 'axios'

const reqMock = axios.create({
  baseURL: '/mock',
  timeout: 20000,
})

reqMock.interceptors.request.use((config) => {
  return config
})

reqMock.interceptors.response.use((res) => {
  return res.data
})

export default reqMock
